<template>
  <div class="page">
    <div class="page-bg">
      <div class="page6">
        <div class="page-title">
          热点聚焦
        </div>
        <div class="page-content">
          <div class="tagBall">
            <a
              class="tag"
              v-for="e in chartData"
              :key="e.CODE"
              href="#"
              :style="`color: rgb(235, 148, 85); opacity: 0.943866; z-index: 95; transform: translate(392.547px, 100.781px) scale(0.952927);font-size: ${e.VALUE}rem;`
              ">{{e.NAME}}</a
            >
          </div>
        </div>
      </div>
    </div>
  </div>
</template>

<script>
import biaoqianyun from "@/common/biaoqianyun";
import requst from "@/api/api";

export default {
  name: "page6",
  components: {},
  data() {
    return {
      chartData: [],
      timer: null,
    };
  },
  async mounted() {
    const {
      data: { data },
    } = await requst.get("/api/1/page/6", {});
    this.chartData = data;
    this.$nextTick(() => {
      biaoqianyun.show()
    });
  },
  methods: {},
};
</script>
<style lang="scss" scoped>
.page6 {
  .page-content {
    width: 1568rem;
    height: 744rem;
    background: url("../assets/images/bg2@2x.png") no-repeat center center;
    background-size: 100% 100%;
    margin: 0 auto;
    margin-top: 80rem;

    .tagBall {
      width: 1000rem;
      height: 780rem;
      margin: 50rem auto;
      position: relative;
    }

    .tag {
      display: block;
      position: absolute;
      left: 0px;
      top: 0px;
      text-decoration: none;
      font-family: "microsoft yahei";
      font-weight: 500;
      will-change: transform;
    }

    .tag:hover {
      border: 1rem dashed rgba(255, 255, 255, 0.3);
    }
  }
}
</style>
